package view;

import javax.swing.*;
import model.db.table.BidHistory;

/**
 * Author: Raoux Etienne
 * Student login: jc218934
 * Student number: 12448190
 * email: etienne.raoux@my.jcu.edu.au
 * alt email: jc218934@gmail.com
 */
public class ItemBidHistoryView extends JFrame
{
    private final BidHistory bidHistory;

    ItemBidHistoryView(BidHistory bidHistory)
    {
        this.bidHistory = bidHistory;
        setTitle(bidHistory.getTitle()+" Bid History");
        JTextArea textArea = new JTextArea();
        textArea.setText(bidHistory.toString());
        add(textArea);
        getContentPane().setLayout(new java.awt.GridLayout());
        pack();
        setVisible(true);
    }
    
}
